package edu.purdue.cs.ds.vss;

import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;

public class VerifiedMessage implements Serializable{

	/**
	 * For the compiler
	 */
	private static final long serialVersionUID = -4419884391112099658L;
	private ArrayList<BigInteger> alist;
	private ArrayList<BigInteger> lambdaList;
	private int index;
	private byte[] signature;
	private boolean sigValid = false;
	public String source;
	public String destination;
	
	
	public VerifiedMessage(ArrayList<BigInteger> a, ArrayList<BigInteger> lambda, int i){
		alist = a;
		lambdaList = lambda;
		index = i;
	}


	public ArrayList<BigInteger> getAlist() {
		return alist;
	}


	public void setAlist(ArrayList<BigInteger> alist) {
		this.alist = alist;
	}


	public ArrayList<BigInteger> getLambdaList() {
		return lambdaList;
	}


	public void setLambdaList(ArrayList<BigInteger> lambdaList) {
		this.lambdaList = lambdaList;
	}


	public int getIndex() {
		return index;
	}


	public void setIndex(int index) {
		this.index = index;
	}
	
	public byte[] getSignature(){
		return signature;
	}
	
	public void setSignature(byte[] sig){
		signature = sig;
	}
	
	public boolean getSigValid(){
		return sigValid;
	}
	
	public void setSigValid(boolean b){
		sigValid = b;
	}
}
